﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mindfor.Web.Models
{
	/// <summary>
	/// Model for file upload control.
	/// </summary>
	public class FileUploadModel
	{
		/// <summary>
		/// Gets or sets name of the field for the uploaded file.
		/// </summary>
		public string FieldName { get; set; }

		/// <summary>
		/// Gets or sets name of the radio element.
		/// </summary>
		public string RadioName { get; set; }

		/// <summary>
		/// Gets or sets current file url.
		/// </summary>
		public string FileUrl { get; set; }

		/// <summary>
		/// Gets or sets additional html attributes.
		/// </summary>
		public object HtmlAttributes { get; set; }

		/// <summary>
		/// Gets or sets value whether delete option is disabled.
		/// </summary>
		public bool DisableDelete { get; set; }

		/// <summary>
		/// Initializes new instance.
		/// </summary>
		/// <param name="fieldName">Name of the field for file upload.</param>
		/// <param name="radioName">Name of the radio element.</param>
		public FileUploadModel(string fieldName, string radioName)
		{
			FieldName = fieldName;
			RadioName = radioName;
		}
	}
}
